if 5 > 12:
    print("5 is indeed greater than 2")
    print("222222222")
else:
    print("5 is not greater than 12")
age = 30
if age < 18:
    print("Sorry, you are too young")
elif age >= 18 and age < 30:
    print("You are young")
elif age >= 30 and age < 50:
    print("You are middle-aged")
else:
    print("You are old")
#判断闰年
year = int(input("请输入年份:"))
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
    print(year, "是闰年")
else:
    print("%d不是闰年" % year)

a= int(input("请输入a:"))
b = int(input("请输入b:"))
c = int(input("请输入c:"))
if a > b:
    if a > c:
        print("a最大")
    else:
        print("c最大")
else:
    if b > c:
        print("b最大")
    else:
        print("c最大")
#计算机实现加减乘除
num1 = float(input("请输入第一个数:"))
num2 = float(input("请输入第二个数:"))
op = input("请输入运算符:")
if op == "+":
    print(num1 + num2)
elif op == "-":
    print(num1 - num2)
elif op == "*":
    print(num1 * num2)
elif op == "/":
    print(num1 / num2)
else:
    print("输入错误")